﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleList.aspx.cs" Inherits="AMS.Web.BackStageManagement.RoleList" %>
<%@ Register Assembly="VitCode.Web.UI.PaginationGrid" Namespace="VitCode.Web.UI"
    TagPrefix="PaginationGrid" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../ScriptFiles/CSS/Main.css" type="text/css" rel="stylesheet"/>
       <script type="text/javascript">
        function Check() {
            var a = document.getElementsByTagName("input");
            for (var i = 0; i < a.length; i++) {
                if (a[i].type == "checkbox") {
                    if (a[i].checked == true)
                        return confirm('确认删除吗');
                }

            }
            alert("请选择要删除的角色！");
            return false;

        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
   
        <table class="tableElse" style="border:1px solid #A8CFEB;margin-top:2px;width:100%"  >
            <tr >
                <td>
                    <font style="color: Black">您当前位置：后台管理&nbsp;<img src="../Images/navigate.gif" alt="" href="#" />&nbsp;角色管理</font>
                </td>
                
            </tr>
            <tr>
                <td>
            
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblConditionMemo" runat="server">查询条件：</asp:Label>
                    <asp:DropDownList ID="ddlCondition" runat="server">
                     <asp:ListItem Text="名称" Value="Name"></asp:ListItem>
                     <asp:ListItem Text="别名" Value="Alias"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="txtValue" runat="server" Width="136px"></asp:TextBox>
                    <asp:RadioButton ID="rbtAmount" runat="server" Text="匹配" GroupName="1"></asp:RadioButton><asp:RadioButton
                        ID="rbtLike" runat="server" Text="模糊" GroupName="1" Checked="True"></asp:RadioButton>&nbsp;
                        
                    <asp:Button ID="btnQuery"  runat="server"   class="btn_mouseout"
                                onmouseover="this.className= 'btn_mouseover ' " onmouseout="this.className= 'btn_mouseout ' "
                                onmousedown="this.className= 'btn_mousedown '" 
                                onmouseup="this.className= 'btn_mouseup '"
                        Text="查询" onclick="btnQuery_Click1" />&nbsp;&nbsp;
                    <asp:Button ID="btnRealDelete"  runat="server" class="btn_mouseout"
                                onmouseover="this.className= 'btn_mouseover ' " onmouseout="this.className= 'btn_mouseout ' "
                                onmousedown="this.className= 'btn_mousedown '" 
                                onmouseup="this.className= 'btn_mouseup '"  OnClientClick="return Check();"
                        OnClick="btnRealDelete_Click" Text="删除" Enabled="false" />&nbsp;&nbsp;
                    <asp:Button ID="btnAdd"  runat="server"  OnClick="btnAdd_Click" class="btn_mouseout"
                                onmouseover="this.className= 'btn_mouseover ' " onmouseout="this.className= 'btn_mouseout ' "
                                onmousedown="this.className= 'btn_mousedown '" 
                                onmouseup="this.className= 'btn_mouseup '"
                        Text="添加" />&nbsp;&nbsp;
                    
                </td>
            </tr>
            </table>
           
                    <PaginationGrid:PaginationGrid ID="ListGridInfo" runat="server" GridSelectedItemStyle_BackColor="SkyBlue"
                        AutoGenerateColumns="False" AutoSort="True" DataKeyField="id" InitPageSize="15"
                        OnOnGridItemSelect="ListGridInfo_OnGridItemSelect">
                        <Columns>
                            <PaginationGrid:PaginationGridCheckColumn ClickScript="" DataField="Id" HeaderText="选择"
                                ShowHeadCheckBox="False" ShowLabel="False">
                             </PaginationGrid:PaginationGridCheckColumn>
                             
                           <PaginationGrid:PaginationGridButtonColumn CommandType="Select" HeaderText="明细"
                            Text="&lt;img src='/Images/edit.gif' border=0&gt;">
                            <itemstyle horizontalalign="Center" />
                           </PaginationGrid:PaginationGridButtonColumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="Name" HeaderText="名称">
                            </PaginationGrid:paginationgridboundcolumn>
                            <PaginationGrid:paginationgridboundcolumn DataField="Alias" HeaderText="别名">
                            </PaginationGrid:paginationgridboundcolumn>
                             <PaginationGrid:paginationgridboundcolumn DataField="Memo" HeaderText="备注">
                            </PaginationGrid:paginationgridboundcolumn>
                         </Columns>
                    </PaginationGrid:PaginationGrid>
           
        <br />
        
     
    </form>
</body>
</html>